<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	  			xmlns:h="http://java.sun.com/jsf/html"
	 			xmlns:p="http://primefaces.org/ui" 
	 			xmlns:c="http://java.sun.com/jsf/core"
	 			xmlns:f="http://java.sun.com/jsf/core"
      			xmlns:ui="http://java.sun.com/jsf/facelets">
<h:panelGrid columns="2">

	<h:outputLabel value="#{lang.getTrans('ui.mobile.customer.name')}" for="cdCustomer" />
	<p:inputText id="cdCustomer" value="#{customerBean.customer.cdCustomer}" 
		requiredMessage="#{lang.getTrans('ui.mobile.customer.name.obrigatorio')}" 
		maxlength="120" size="50" required="true"/>

	<h:outputLabel value="#{lang.getTrans('ui.mobile.customer.address')}" for="cdAddress" />
	<p:inputText id="cdAddress" value="#{customerBean.customer.cdAddress}" size="50" maxlength="150" />

	<h:outputLabel value="#{lang.getTrans('ui.mobile.customer.neighborhood')}" for="cdNeighborhood" />
	<p:inputText id="cdNeighborhood" value="#{customerBean.customer.cdNeighborhood}" 
		size="50" maxlength="100" />

	<h:outputLabel value="#{lang.getTrans('ui.mobile.customer.city')}" for="cdCity" />
	<p:inputText id="cdCity" value="#{customerBean.customer.cdCity}" size="50" maxlength="100"/>

	<h:outputLabel value="#{lang.getTrans('ui.mobile.customer.email')}" for="cdEmail" />
	<p:inputText id="cdEmail" value="#{customerBean.customer.cdEmail}" size="50" maxlength="100"/> 

	<h:outputLabel value="#{lang.getTrans('ui.mobile.customer.phone')}" for="cdPhone" />
	<p:inputMask id="cdPhone" value="#{customerBean.customer.cdPhone}"
		size="20" maxlength="20" mask="(99) 9999-9999" />

	<h:outputLabel value="#{lang.getTrans('ui.mobile.customer.cpf')}" for="cdCPF" />
	<p:inputMask id="cdCPF" value="#{customerBean.customer.cdCPF}"
		mask="999.999.999-99" size="20" maxlength="20" />

	<h:outputLabel value="#{lang.getTrans('ui.mobile.customer.cep')}" for="cdCEP" />
	<p:inputMask id="cdCEP" value="#{customerBean.customer.cdCEP}"
		mask="99999-999" size="20" maxlength="20" />

	<h:outputLabel value="#{lang.getTrans('ui.mobile.customer.sex')}" for="cdSex" />
	<p:selectOneListbox id="cdSex" value="#{customerBean.customer.cdSex}">
		<f:selectItem itemValue="M" itemLabel="#{lang.getTrans('ui.mobile.customer.sex.male')}"/>
		<f:selectItem itemValue="F" itemLabel="#{lang.getTrans('ui.mobile.customer.sex.female')}"/>
	</p:selectOneListbox>

	<h:outputLabel value="#{lang.getTrans('ui.mobile.customer.birthday')}" for="dtBirthday" />
	<p:calendar id="dtBirthday" pattern="dd/MM/yyyy" value="#{customerBean.customer.dtBirthday}" /> 

</h:panelGrid>			
</ui:composition>